<template>
	<view class="content">
		<upfails :id="id" @upload="getUpload" @progress="getProgress"></upfails>
	</view>
</template>

<script>
	import upfails from '../../components/upfails/upfails.vue'
	export default{
		comments:{upfails},
		data(){
			return{
				id:1
			}
		},
		onLoad(options) {
			this.id=options.id;
			uni.setNavigationBarTitle({
				title:options.name
			})
		},
		methods:{
			getUpload(data){//此处接收组件上传文件后的地址信息
				console.log('获取上传后的信息')
				console.log(data)
			},
			getProgress(data){//此处接收组件上传文件时的进度信息
				console.log('获取上传进度信息')
				console.log(data)
			}
		}
	}
</script>

<style>
</style>
